import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "./css/init.css";
import "element-plus/dist/index.css";
import { createPinia } from "pinia";
import { router } from "./router/index";
import * as ElIconModules from "@element-plus/icons-vue";

const pinia = createPinia();
const app = createApp(App);
app.use(router).use(pinia).use(ElementPlus).mount("#app");
// 统一注册Icon图标
for (const iconName in ElIconModules) {
      if (Reflect.has(ElIconModules, iconName)) {
            const item = ElIconModules[iconName];
            app.component(iconName, item);
      }
}
